int debug_level;
gpsdata_type objective;
int verbose_status; /* set by GUI wrappers for status */
+ int no_smart_icons;
} global_options;
extern global_options global_opts;
" -r Process route information\n"
" -t Process track information\n"
" -w Process waypoint information [default]\n"
+" -N No smart icons on output\n"
" -x filtername Invoke filter\n"
" -D level Set debug level [%d]\n"
"\n"
case 'r':
global_opts.objective = rtedata;
break;
+ case 'N':
+ global_opts.no_smart_icons = 1;
+ break;
case 'x':
optarg = argv[argn][2]
? argv[argn]+2 : argv[++argn];
cp gpsbabel.exe /tmp
mkwintesto: mkwintesto.c
- /usr/bin/cc mkwintesto.c ../util.c -o mkwintesto
+ /usr/bin/cc mkwintesto.c -o mkwintesto
wintesto.cmd: mkwintesto
./mkwintesto ../testo
#include <stdio.h>
#include <string.h>
+#include <stdarg.h>
#define LINELENGTH 200
#define MYNAME "MkWinTesto"
return 0;
}
+/* ------------------------------------------------------------------------------------ */
+void
+fatal(const char *fmt, ...)
+{
+ va_list ap;
+ va_start(ap, fmt);
+ vfprintf(stderr, fmt, ap);
+ va_end(ap);
+ exit(1);
+}
+
/* ------------------------------------------------------------------------------------ */
int main(
- int argc,
+int argc,
char *argv[])
{
char acLineIn[LINELENGTH];
const char *
get_cache_icon(const waypoint *waypointp)
{
+ if (global_opts.no_smart_icons)
+ return NULL;
+
/*
* For icons, type overwrites container. So a multi-micro will
* get the icons for "multi".